﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace TeamFoundation.EventBus
{
    /// <summary>
    /// Represents a subscription in the data model.
    /// </summary>
    [XmlRoot("subscription", Namespace = Utilities.SubscriptionNamespace)]
    public class EventSubscription
    {
        /// <summary>
        /// Gets or sets the name of the pipe.
        /// </summary>
        [XmlAttribute("pipe")]
        public string Pipe { get; set; }

        /// <summary>
        /// Gets or sets the name of the subscription.
        /// </summary>
        [XmlAttribute("name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the filter string.
        /// </summary>
        [XmlElement("filter")]
        public string Filter { get; set; }
    }
}
